From d057bf8506f83d7648754b4fc6844a78710f2b98 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 1 Apr 2006 10:52:47 +0100 Subject: [PATCH] When dom0 fails to balloon enough memory to allow a new domain to start, an exception is thrown. The test that decides which exception to throw is backwards, resulting in strange error messages. The attached patch fixes the problem. Signed-off-by: Charles Coffing --- tools/python/xen/xend/balloon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/balloon.py b/tools/python/xen/xend/balloon.py index 56c0e75e56..63f1f7eb42 100644 --- a/tools/python/xen/xend/balloon.py +++ b/tools/python/xen/xend/balloon.py @@ -152,7 +152,7 @@ def free(required): 'I cannot release any more. I need %d MiB but ' 'only have %d.') % (need_mem, free_mem)) - elif new_alloc >= dom0_min_mem: + elif new_alloc < dom0_min_mem: raise VmError( ('I need %d MiB, but dom0_min_mem is %d and shrinking to ' '%d MiB would leave only %d MiB free.') % -- 2.30.2